package routes

import (
	"go_web/internal/handler/handler_sys"
	"github.com/gin-gonic/gin"
)


func InitSysAuthCodeRoutes(router *gin.Engine, SysAuthCodeHandler *handler_sys.SysAuthCodeHandler) {
	SysAuthCodeGroup := router.Group("/api/sys_auth_code")
	{
		SysAuthCodeGroup.GET("/detail", SysAuthCodeHandler.Detail)
		SysAuthCodeGroup.GET("/page", SysAuthCodeHandler.Page)
		SysAuthCodeGroup.POST("/add", SysAuthCodeHandler.Add)
		SysAuthCodeGroup.POST("/edit", SysAuthCodeHandler.Edit)
		SysAuthCodeGroup.POST("/delete", SysAuthCodeHandler.Delete)
	}
}

func InitSysBindTypeRoutes(router *gin.Engine, SysBindTypeHandler *handler_sys.SysBindTypeHandler) {
	SysBindTypeGroup := router.Group("/api/sys_bind_type")
	{
		SysBindTypeGroup.GET("/detail", SysBindTypeHandler.Detail)
		SysBindTypeGroup.GET("/page", SysBindTypeHandler.Page)
		SysBindTypeGroup.POST("/add", SysBindTypeHandler.Add)
		SysBindTypeGroup.POST("/edit", SysBindTypeHandler.Edit)
		SysBindTypeGroup.POST("/delete", SysBindTypeHandler.Delete)
	}
}

func InitSysDataScopeRoutes(router *gin.Engine, SysDataScopeHandler *handler_sys.SysDataScopeHandler) {
	SysDataScopeGroup := router.Group("/api/sys_data_scope")
	{
		SysDataScopeGroup.GET("/detail", SysDataScopeHandler.Detail)
		SysDataScopeGroup.GET("/page", SysDataScopeHandler.Page)
		SysDataScopeGroup.POST("/add", SysDataScopeHandler.Add)
		SysDataScopeGroup.POST("/edit", SysDataScopeHandler.Edit)
		SysDataScopeGroup.POST("/delete", SysDataScopeHandler.Delete)
	}
}

func InitSysDictDataRoutes(router *gin.Engine, SysDictDataHandler *handler_sys.SysDictDataHandler) {
	SysDictDataGroup := router.Group("/api/sys_dict_data")
	{
		SysDictDataGroup.GET("/detail", SysDictDataHandler.Detail)
		SysDictDataGroup.GET("/page", SysDictDataHandler.Page)
		SysDictDataGroup.POST("/add", SysDictDataHandler.Add)
		SysDictDataGroup.POST("/edit", SysDictDataHandler.Edit)
		SysDictDataGroup.POST("/delete", SysDictDataHandler.Delete)
	}
}

func InitSysDictTypeRoutes(router *gin.Engine, SysDictTypeHandler *handler_sys.SysDictTypeHandler) {
	SysDictTypeGroup := router.Group("/api/sys_dict_type")
	{
		SysDictTypeGroup.GET("/detail", SysDictTypeHandler.Detail)
		SysDictTypeGroup.GET("/page", SysDictTypeHandler.Page)
		SysDictTypeGroup.POST("/add", SysDictTypeHandler.Add)
		SysDictTypeGroup.POST("/edit", SysDictTypeHandler.Edit)
		SysDictTypeGroup.POST("/delete", SysDictTypeHandler.Delete)
	}
}

func InitSysFileRoutes(router *gin.Engine, SysFileHandler *handler_sys.SysFileHandler) {
	SysFileGroup := router.Group("/api/sys_file")
	{
		SysFileGroup.GET("/detail", SysFileHandler.Detail)
		SysFileGroup.GET("/page", SysFileHandler.Page)
		SysFileGroup.POST("/add", SysFileHandler.Add)
		SysFileGroup.POST("/edit", SysFileHandler.Edit)
		SysFileGroup.POST("/delete", SysFileHandler.Delete)
	}
}

func InitSysFileAuthRoutes(router *gin.Engine, SysFileAuthHandler *handler_sys.SysFileAuthHandler) {
	SysFileAuthGroup := router.Group("/api/sys_file_auth")
	{
		SysFileAuthGroup.GET("/detail", SysFileAuthHandler.Detail)
		SysFileAuthGroup.GET("/page", SysFileAuthHandler.Page)
		SysFileAuthGroup.POST("/add", SysFileAuthHandler.Add)
		SysFileAuthGroup.POST("/edit", SysFileAuthHandler.Edit)
		SysFileAuthGroup.POST("/delete", SysFileAuthHandler.Delete)
	}
}

func InitSysOrgRoutes(router *gin.Engine, SysOrgHandler *handler_sys.SysOrgHandler) {
	SysOrgGroup := router.Group("/api/sys_org")
	{
		SysOrgGroup.GET("/detail", SysOrgHandler.Detail)
		SysOrgGroup.GET("/page", SysOrgHandler.Page)
		SysOrgGroup.POST("/add", SysOrgHandler.Add)
		SysOrgGroup.POST("/edit", SysOrgHandler.Edit)
		SysOrgGroup.POST("/delete", SysOrgHandler.Delete)
	}
}

func InitSysOrgUserRoutes(router *gin.Engine, SysOrgUserHandler *handler_sys.SysOrgUserHandler) {
	SysOrgUserGroup := router.Group("/api/sys_org_user")
	{
		SysOrgUserGroup.GET("/detail", SysOrgUserHandler.Detail)
		SysOrgUserGroup.GET("/page", SysOrgUserHandler.Page)
		SysOrgUserGroup.POST("/add", SysOrgUserHandler.Add)
		SysOrgUserGroup.POST("/edit", SysOrgUserHandler.Edit)
		SysOrgUserGroup.POST("/delete", SysOrgUserHandler.Delete)
	}
}

func InitSysRouteRoutes(router *gin.Engine, SysRouteHandler *handler_sys.SysRouteHandler) {
	SysRouteGroup := router.Group("/api/sys_route")
	{
		SysRouteGroup.GET("/detail", SysRouteHandler.Detail)
		SysRouteGroup.GET("/page", SysRouteHandler.Page)
		SysRouteGroup.POST("/add", SysRouteHandler.Add)
		SysRouteGroup.POST("/edit", SysRouteHandler.Edit)
		SysRouteGroup.POST("/delete", SysRouteHandler.Delete)
	}
}

func InitSysRouteAuthRoutes(router *gin.Engine, SysRouteAuthHandler *handler_sys.SysRouteAuthHandler) {
	SysRouteAuthGroup := router.Group("/api/sys_route_auth")
	{
		SysRouteAuthGroup.GET("/detail", SysRouteAuthHandler.Detail)
		SysRouteAuthGroup.GET("/page", SysRouteAuthHandler.Page)
		SysRouteAuthGroup.POST("/add", SysRouteAuthHandler.Add)
		SysRouteAuthGroup.POST("/edit", SysRouteAuthHandler.Edit)
		SysRouteAuthGroup.POST("/delete", SysRouteAuthHandler.Delete)
	}
}

func InitSysUserRoutes(router *gin.Engine, SysUserHandler *handler_sys.SysUserHandler) {
	SysUserGroup := router.Group("/api/sys_user")
	{
		SysUserGroup.GET("/detail", SysUserHandler.Detail)
		SysUserGroup.GET("/page", SysUserHandler.Page)
		SysUserGroup.POST("/add", SysUserHandler.Add)
		SysUserGroup.POST("/edit", SysUserHandler.Edit)
		SysUserGroup.POST("/delete", SysUserHandler.Delete)
	}
}

func InitSysUserBindRoutes(router *gin.Engine, SysUserBindHandler *handler_sys.SysUserBindHandler) {
	SysUserBindGroup := router.Group("/api/sys_user_bind")
	{
		SysUserBindGroup.GET("/detail", SysUserBindHandler.Detail)
		SysUserBindGroup.GET("/page", SysUserBindHandler.Page)
		SysUserBindGroup.POST("/add", SysUserBindHandler.Add)
		SysUserBindGroup.POST("/edit", SysUserBindHandler.Edit)
		SysUserBindGroup.POST("/delete", SysUserBindHandler.Delete)
	}
}

func InitSysUserRoleMapRoutes(router *gin.Engine, SysUserRoleMapHandler *handler_sys.SysUserRoleMapHandler) {
	SysUserRoleMapGroup := router.Group("/api/sys_user_role_map")
	{
		SysUserRoleMapGroup.GET("/detail", SysUserRoleMapHandler.Detail)
		SysUserRoleMapGroup.GET("/page", SysUserRoleMapHandler.Page)
		SysUserRoleMapGroup.POST("/add", SysUserRoleMapHandler.Add)
		SysUserRoleMapGroup.POST("/edit", SysUserRoleMapHandler.Edit)
		SysUserRoleMapGroup.POST("/delete", SysUserRoleMapHandler.Delete)
	}
}

